package org.springcloud.plugin.strategy.gateway.filter;

import org.springcloud.plugin.framework.strategy.wrapper.StrategyWrapper;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * author: yanggld
 * date: 2019/12/21 22:15
 * version: 1.0
 * description: DefaultGatewayStrategyRouteFilter
 */
public class DefaultGatewayStrategyRouteFilter extends AbstractGatewayStrategyRouteFilter {
    @Autowired
    private StrategyWrapper strategyWrapper;

    @Override
    public String getRouteVersion() {
        return strategyWrapper.getRouteVersion();
    }

    @Override
    public String getRouteRegion() {
        return strategyWrapper.getRouteRegion();
    }

    @Override
    public String getRouteVersionWeight() {
        return strategyWrapper.getRouteVersionWeight();
    }

    @Override
    public String getRouteRegionWeight() {
        return strategyWrapper.getRouteRegionWeight();
    }
}
